// 学生类型定义
export interface Student {
  id: number;
  name: string;
  studentId: string; // 学号
  gender: 'male' | 'female';
  grade: string; // 年级
  class: string; // 班级
  dateOfBirth: string;
  admissionDate: string;
  phoneNumber: string;
  email: string;
  address: string;
  dormitory?: string; // 宿舍信息
  status: 'active' | 'graduated' | 'transferred' | 'suspended'; // 学生状态
  avatar?: string; // 头像URL
  emergencyContact?: {
    name: string;
    relationship: string;
    phone: string;
  };
}

// 班级类型定义
export interface ClassInfo {
  id: number;
  name: string;
  grade: string;
  headTeacherId: number;
  headTeacherName: string;
  studentCount: number;
  createdAt: string;
}

// 年级选项
export const gradeOptions = [
  { value: 'freshman', label: '高一' },
  { value: 'sophomore', label: '高二' },
  { value: 'junior', label: '高三' }
];

// 学生状态选项
export const statusOptions = [
  { value: 'active', label: '在读' },
  { value: 'graduated', label: '毕业' },
  { value: 'transferred', label: '转学' },
  { value: 'suspended', label: '休学' }
];

// 初始学生数据（用于演示）
export const initialStudents: Student[] = [
  {
    id: 1,
    name: '张三',
    studentId: '2023001',
    gender: 'male',
    grade: 'freshman',
    class: '高一(1)班',
    dateOfBirth: '2008-05-15',
    admissionDate: '2023-09-01',
    phoneNumber: '13812345678',
    email: 'zhangsan@example.com',
    address: '北京市朝阳区',
    status: 'active',
    emergencyContact: {
      name: '张父',
      relationship: '父亲',
      phone: '13912345678'
    }
  },
  {
    id: 2,
    name: '李四',
    studentId: '2023002',
    gender: 'female',
    grade: 'freshman',
    class: '高一(2)班',
    dateOfBirth: '2008-08-22',
    admissionDate: '2023-09-01',
    phoneNumber: '13712345678',
    email: 'lisi@example.com',
    address: '北京市海淀区',
    status: 'active',
    emergencyContact: {
      name: '李母',
      relationship: '母亲',
      phone: '13612345678'
    }
  },
  {
    id: 3,
    name: '王五',
    studentId: '2023003',
    gender: 'male',
    grade: 'sophomore',
    class: '高二(1)班',
    dateOfBirth: '2007-03-18',
    admissionDate: '2022-09-01',
    phoneNumber: '13512345678',
    email: 'wangwu@example.com',
    address: '北京市东城区',
    status: 'active',
    emergencyContact: {
      name: '王父',
      relationship: '父亲',
      phone: '13412345678'
    }
  },
  {
    id: 4,
    name: '赵六',
    studentId: '2023004',
    gender: 'female',
    grade: 'junior',
    class: '高三(3)班',
    dateOfBirth: '2006-11-05',
    admissionDate: '2021-09-01',
    phoneNumber: '13312345678',
    email: 'zhaoliu@example.com',
    address: '北京市西城区',
    status: 'active',
    emergencyContact: {
      name: '赵母',
      relationship: '母亲',
      phone: '13212345678'
    }
  },
  {
    id: 5,
    name: '孙七',
    studentId: '2023005',
    gender: 'male',
    grade: 'sophomore',
    class: '高二(2)班',
    dateOfBirth: '2007-07-30',
    admissionDate: '2022-09-01',
    phoneNumber: '13112345678',
    email: 'sunqi@example.com',
    address: '北京市丰台区',
    status: 'suspended',
    emergencyContact: {
      name: '孙父',
      relationship: '父亲',
      phone: '13012345678'
    }
  }
];

// 初始班级数据（用于演示）
export const initialClasses: ClassInfo[] = [
  { id: 1, name: '高一(1)班', grade: 'freshman', headTeacherId: 1, headTeacherName: '张老师', studentCount: 35, createdAt: '2023-08-15' },
  { id: 2, name: '高一(2)班', grade: 'freshman', headTeacherId: 2, headTeacherName: '李老师', studentCount: 32, createdAt: '2023-08-15' },
  { id: 3, name: '高一(3)班', grade: 'freshman', headTeacherId: 3, headTeacherName: '王老师', studentCount: 33, createdAt: '2023-08-15' },
  { id: 4, name: '高二(1)班', grade: 'sophomore', headTeacherId: 4, headTeacherName: '赵老师', studentCount: 30, createdAt: '2022-08-15' },
  { id: 5, name: '高二(2)班', grade: 'sophomore', headTeacherId: 5, headTeacherName: '刘老师', studentCount: 33, createdAt: '2022-08-15' },
  { id: 6, name: '高二(3)班', grade: 'sophomore', headTeacherId: 6, headTeacherName: '陈老师', studentCount: 31, createdAt: '2022-08-15' },
  { id: 7, name: '高三(1)班', grade: 'junior', headTeacherId: 7, headTeacherName: '杨老师', studentCount: 28, createdAt: '2021-08-15' },
  { id: 8, name: '高三(2)班', grade: 'junior', headTeacherId: 8, headTeacherName: '黄老师', studentCount: 31, createdAt: '2021-08-15' },
  { id: 9, name: '高三(3)班', grade: 'junior', headTeacherId: 9, headTeacherName: '周老师', studentCount: 29, createdAt: '2021-08-15' }
];